Integrand size = 23, antiderivative size = 178 \[ \int \frac {1}{(a+a \cos (c+d x))^2 \sec ^{\frac {7}{2}}(c+d x)} \, dx=-\frac {7 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{a^2 d}+\frac {10 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 a^2 d}+\frac {10 \sin (c+d x)}{3 a^2 d \sqrt {\sec (c+d x)}}-\frac {7 \sin (c+d x)}{3 a^2 d \sqrt {\sec (c+d x)} (1+\sec (c+d x))}-\frac {\sin (c+d x)}{3 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2} \]
[Out]
Time = 0.31 (sec) , antiderivative size = 178, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.348, Rules used = {3317, 3902, 4105, 3872, 3854, 3856, 2720, 2719} \[ \int \frac {1}{(a+a \cos (c+d x))^2 \sec ^{\frac {7}{2}}(c+d x)} \, dx=\frac {10 \sin (c+d x)}{3 a^2 d \sqrt {\sec (c+d x)}}-\frac {7 \sin (c+d x)}{3 a^2 d \sqrt {\sec (c+d x)} (\sec (c+d x)+1)}+\frac {10 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 a^2 d}-\frac {7 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a^2 d}-\frac {\sin (c+d x)}{3 d \sqrt {\sec (c+d x)} (a \sec (c+d x)+a)^2} \]
[In]
[Out]
Rule 2719
Rule 2720
Rule 3317
Rule 3854
Rule 3856
Rule 3872
Rule 3902
Rule 4105
Rubi steps \begin{align*} \text {integral}& = \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^2} \, dx \\ & = -\frac {\sin (c+d x)}{3 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2}-\frac {\int \frac {-\frac {9 a}{2}+\frac {5}{2} a \sec (c+d x)}{\sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))} \, dx}{3 a^2} \\ & = -\frac {7 \sin (c+d x)}{3 a^2 d \sqrt {\sec (c+d x)} (1+\sec (c+d x))}-\frac {\sin (c+d x)}{3 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2}-\frac {\int \frac {-15 a^2+\frac {21}{2} a^2 \sec (c+d x)}{\sec ^{\frac {3}{2}}(c+d x)} \, dx}{3 a^4} \\ & = -\frac {7 \sin (c+d x)}{3 a^2 d \sqrt {\sec (c+d x)} (1+\sec (c+d x))}-\frac {\sin (c+d x)}{3 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2}-\frac {7 \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx}{2 a^2}+\frac {5 \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x)} \, dx}{a^2} \\ & = \frac {10 \sin (c+d x)}{3 a^2 d \sqrt {\sec (c+d x)}}-\frac {7 \sin (c+d x)}{3 a^2 d \sqrt {\sec (c+d x)} (1+\sec (c+d x))}-\frac {\sin (c+d x)}{3 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2}+\frac {5 \int \sqrt {\sec (c+d x)} \, dx}{3 a^2}-\frac {\left (7 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx}{2 a^2} \\ & = -\frac {7 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{a^2 d}+\frac {10 \sin (c+d x)}{3 a^2 d \sqrt {\sec (c+d x)}}-\frac {7 \sin (c+d x)}{3 a^2 d \sqrt {\sec (c+d x)} (1+\sec (c+d x))}-\frac {\sin (c+d x)}{3 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2}+\frac {\left (5 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{3 a^2} \\ & = -\frac {7 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{a^2 d}+\frac {10 \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 a^2 d}+\frac {10 \sin (c+d x)}{3 a^2 d \sqrt {\sec (c+d x)}}-\frac {7 \sin (c+d x)}{3 a^2 d \sqrt {\sec (c+d x)} (1+\sec (c+d x))}-\frac {\sin (c+d x)}{3 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 1.63 (sec) , antiderivative size = 257, normalized size of antiderivative = 1.44 \[ \int \frac {1}{(a+a \cos (c+d x))^2 \sec ^{\frac {7}{2}}(c+d x)} \, dx=\frac {e^{-i d x} \cos \left (\frac {1}{2} (c+d x)\right ) \sqrt {\sec (c+d x)} (\cos (d x)+i \sin (d x)) \left (-84 i \cos \left (\frac {1}{2} (c+d x)\right )-63 i \cos \left (\frac {3}{2} (c+d x)\right )-21 i \cos \left (\frac {5}{2} (c+d x)\right )+80 \cos ^3\left (\frac {1}{2} (c+d x)\right ) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+7 i e^{-\frac {1}{2} i (c+d x)} \left (1+e^{i (c+d x)}\right )^3 \sqrt {1+e^{2 i (c+d x)}} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {3}{4},\frac {7}{4},-e^{2 i (c+d x)}\right )+3 \sin \left (\frac {1}{2} (c+d x)\right )+10 \sin \left (\frac {3}{2} (c+d x)\right )+12 \sin \left (\frac {5}{2} (c+d x)\right )+\sin \left (\frac {7}{2} (c+d x)\right )\right )}{6 a^2 d (1+\cos (c+d x))^2} \]
[In]
[Out]
Time = 5.27 (sec) , antiderivative size = 270, normalized size of antiderivative = 1.52
method | result | size |
default | \(-\frac {\sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (16 \left (\cos ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+12 \left (\cos ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+20 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\cos ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+42 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \left (\cos ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-48 \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+21 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right )}{6 a^{2} \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d}\) | \(270\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 287, normalized size of antiderivative = 1.61 \[ \int \frac {1}{(a+a \cos (c+d x))^2 \sec ^{\frac {7}{2}}(c+d x)} \, dx=-\frac {10 \, {\left (i \, \sqrt {2} \cos \left (d x + c\right )^{2} + 2 i \, \sqrt {2} \cos \left (d x + c\right ) + i \, \sqrt {2}\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + 10 \, {\left (-i \, \sqrt {2} \cos \left (d x + c\right )^{2} - 2 i \, \sqrt {2} \cos \left (d x + c\right ) - i \, \sqrt {2}\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 21 \, {\left (i \, \sqrt {2} \cos \left (d x + c\right )^{2} + 2 i \, \sqrt {2} \cos \left (d x + c\right ) + i \, \sqrt {2}\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 21 \, {\left (-i \, \sqrt {2} \cos \left (d x + c\right )^{2} - 2 i \, \sqrt {2} \cos \left (d x + c\right ) - i \, \sqrt {2}\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) - \frac {2 \, {\left (2 \, \cos \left (d x + c\right )^{3} + 13 \, \cos \left (d x + c\right )^{2} + 10 \, \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{6 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} + 2 \, a^{2} d \cos \left (d x + c\right ) + a^{2} d\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{(a+a \cos (c+d x))^2 \sec ^{\frac {7}{2}}(c+d x)} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {1}{(a+a \cos (c+d x))^2 \sec ^{\frac {7}{2}}(c+d x)} \, dx=\int { \frac {1}{{\left (a \cos \left (d x + c\right ) + a\right )}^{2} \sec \left (d x + c\right )^{\frac {7}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {1}{(a+a \cos (c+d x))^2 \sec ^{\frac {7}{2}}(c+d x)} \, dx=\int { \frac {1}{{\left (a \cos \left (d x + c\right ) + a\right )}^{2} \sec \left (d x + c\right )^{\frac {7}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {1}{(a+a \cos (c+d x))^2 \sec ^{\frac {7}{2}}(c+d x)} \, dx=\int \frac {1}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{7/2}\,{\left (a+a\,\cos \left (c+d\,x\right )\right )}^2} \,d x \]
[In]
[Out]